package com.da.javatest.leetCode2;

public class Code944 {
    public char nextGreatestLetter(char[] letters, char target) {
        for (char letter : letters) {
            if (letter - target > 0) {
                return letter;
            }
        }
        return letters[0];
    }
}
